package com.ara.account.model;


import com.ara.account.bean.AccountBean;
import com.ara.account.contract.LoginContract;
import com.ara.account.retrofit.AccountApiHolder;
import com.ara.common.kernel.bean.BaseBean;
import com.ara.common.kernel.network.util.RxUtils;

import io.reactivex.rxjava3.core.Flowable;

/**
 * Created by XieXin on 2020/6/18.
 * 登录 Model层
 */
public class LoginModel implements LoginContract.Model {
    @Override
    public Flowable<BaseBean<AccountBean>> login(String uuid) {
        return AccountApiHolder.getAccountApi().login(uuid).compose(RxUtils.handleResult());
    }

}
